package com.Logistics.truck;

import com.Logistics.dto.line.TransportLineDto;
import com.Logistics.entity.line.LineBean;
import com.Logistics.mycommon.tools.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "pd-base",path = "/line")
public interface TransportLineFeignClient {
    @PostMapping("/findDirectLine")
    public List<LineBean> findDirectLine(@RequestBody TransportLineDto transportLineDto);

    /**
     * 根据线路编号查询线路信息
     * @param id
     * @return
     */
    @GetMapping("/getLineById/{id}")
    public Result<LineBean> getLineById(@PathVariable("id") String id);
}
